/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.concurrent.TimeUnit;

/**
 * <p>Project: javaseapp - Ex8
 * <p>Powered by webrx On 2021-08-26 08:38:51
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Ex8 {
    public static void main(String[] args) {
        //线程休眠
        System.out.printf("%1$tF %1$tT%n", System.currentTimeMillis());
        try {
            Thread.sleep(3000);
            TimeUnit.SECONDS.sleep(2);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.printf("%1$tF %1$tT%n", System.currentTimeMillis());
    }
}
